﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Webform/Layout/FormPage.Master" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="Yule8xWeb.Webform.Settings.Edit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content_header" runat="server">
    <h1>相关设置
    <small>Settings</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i>首页</a></li>
        <li><a href="#">系统</a></li>
        <li class="active">相关设置</li>
    </ol>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="content" runat="server">
    <div class="box">
        <div class="box-body">
            <div class="row">
                <div class="col-md-5">
                    <!-- form start -->
                    <form action="Edit.aspx" method="post" class="form-horizontal">

                        <div class="box-body">
                            <div class="panel panel-default">
                                <div class="panel-heading">房卡配置</div>
                                <div class="panel-body">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">市场价格</label>
                                        <div class="col-sm-9">
                                            <input type="text" name="market_price" class="form-control input-sm" placeholder="市场价格,用于显示" />
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">代理价格</label>
                                        <div class="col-sm-9">
                                            <input type="text" name="agent_price" class="form-control input-sm" placeholder="代理购买的基础价格" />
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">用户价格</label>
                                        <div class="col-sm-9">
                                            <input type="text" name="user_price" class="form-control input-sm" placeholder="用户公众号在线购买的价格" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="panel panel-default">
                                <div class="panel-heading">代理配置</div>
                                <div class="panel-body">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">代理门槛</label>
                                        <div class="col-sm-9">
                                            <div class="input-group">
                                                <input type="text" name="agent1_card_number" class="form-control input-sm" placeholder="成为代理所需购买房卡数量" />
                                                <span class="input-group-addon">张</span>
                                            </div>

                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">代理返利</label>
                                        <div class="col-sm-9">
                                            <input type="text" name="agent3_card_number" class="form-control input-sm" placeholder="客户推广佣金比例" />
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">一级代理返利比例</label>
                                        <div class="col-sm-9">
                                            <input type="text" name="agent1_card_number" class="form-control input-sm" placeholder="一级代理购买商品的返利比例" />
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">二级代理返利比例</label>
                                        <div class="col-sm-9">
                                            <input type="text" name="agent2_card_number" class="form-control input-sm" placeholder="二级代理购买商品的返利比例" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer">
                            <button type="submit" class="btn btn-primary pull-right">保存</button>
                        </div>
                        <!-- /.box-footer -->
                        <input type="hidden" name="id" value="" />
                    </form>
                </div>
            </div>
        </div>
    </div>
    <script>
        xsApp.xsfnUploadButtonInit();
        /**
         * 单文件上传回调函数
         * @param {type} name
         * @param {type} value
         * @returns {undefined}
         * @version 1.0 2016-12-15
         */
        function single_uploader_cb(name, value) {
            var $input = $('[name="' + name + '"]');
            $input.val(value)
            //$input.parent().parent().find('img').attr('src', value).parent().attr({'href': value, 'title': value}).next().data('url', value);
            layer.closeAll();
            //$('iframe').parent().dialog('close');
        }
    </script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="body_foot" runat="server">
</asp:Content>
